<?php echo $this->fetch('header.html'); ?>
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=youka">优卡管理</a></li> 
</ul>
<div class="searchbox">
<form method="get" action="<?php echo $this->_var['appadmin']; ?>">
<input type="hidden" name="m" value="youka" />
<input type="hidden" name="a" value="default" />
用户：<input type="text" name="nickname" value="<?php echo $_GET['nickname']; ?>" class="w100" />
<input type="submit" value="搜索" class="btn btn-warning" />
</form>
</div>
<table class="table">
	<tr>
    	<td>用户</td>
        <td>寝室</td>
        <td>授信额度</td>
        <td>可用余额</td>
        <td>总消费额</td>
        <td>操作</td>
    </tr>
    <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
    <tr>
    	<td><?php echo $this->_var['c']['nickname']; ?></td>
        <td><?php echo $this->_var['c']['ss_name']; ?></td>
        <td><?php echo $this->_var['c']['sxmoney']; ?></td>
        <td><?php echo $this->_var['c']['money']; ?></td>
        <td><?php echo $this->_var['c']['buy_money']; ?></td>
        <td> <a href="<?php echo $this->_var['appadmin']; ?>?m=youka&a=add&id=<?php echo $this->_var['c']['id']; ?>">额度管理</a> </td>
    </tr>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php echo $this->fetch('footer.html'); ?>